package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.stream.Stream;

public interface OrderTimeDao {

    int addOrder(Order order);

    Page<Order> selectOrder(QueryPageBean queryPageBean);

    int deleteOrder(@Param("id") int id);

    Order selectOneOrder(@Param("id") int id);

    List<Setmeal> selectStream();

    int updateOrder(Order order);

    int updateStreamid(@Param("sid")Integer sid,@Param("id") Integer id);

}
